# CentOS

FROM            docker.io/centos:7
MAINTAINER      Lijc lijc@siccs.cn
# import the default repo
RUN             cd /etc/yum.repos.d && rm -f CentOS-Base.repo
ADD             CentOS-Base.repo /etc/yum.repos.d/
RUN             rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-*
# import epel repo
ADD             epel.repo /etc/yum.repos.d/
ADD             RPM-GPG-KEY-EPEL-7 /etc/pki/rpm-gpg/
RUN             rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
# yum makecache
RUN             yum makecache
# modify the default timezone
RUN             ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

